<div ng-init="init();" class="kmi-layout-content B0401-content">
    <div class="kmi-header-row">
        <div class="kmi-side-btn left" ng-click="back();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="brand-title">
            <div class="custom" ng-if="companyName">
                <div class="title" ng-bind="companyName"></div>
                <img src="" alt="" class="brand">
                <div class="gap"></div>
            </div>
            <div class="digiwin">
                <img src="image/smes_v340/logo_ch.png" alt="">
                <img src="image/smes_v340/logo_en.png" alt="">
            </div>
        </div>
        <div class="header-title" ng-bind="'B0401.title' | translate"></div>
        <div class="header-logo"></div>
    </div>
    <div class="kmi-layout-main-content">
        <div class="kmi-layout-page">
            <div class="kmi-text-fields">
                <label class="label" ng-bind="'B0401.item_display' | translate"></label>
                <input ng-model="warehouseInfo.item_no"></input>
                <div class="tip search" ng-click="loadItemNo();"><img src="image/icons/search.png"></img> </div>
                <label class="label" style="flex: 0 0 100px;" ng-bind="'B0401.do_flag' | translate"></label>
                <div class="check-point-switch" ng-class="{'is-selected':do_flag == 0}" ng-click="ClickDoFlag();">
                    <div style="width:24px;height:24px;"></div>
                </div>
                <div class="kmi-button kmi-button-confrim btn-confirm" ng-click="search()"
                    style="width:100px;margin-left: 40px;">
                    <label ng-bind="'B0401.search' | translate"></label>
                    <div class="kmi-can-click"></div>
                </div>
            </div>
            <div class="kmi-text-fields">
                <label class="label" ng-bind="'B0401.wo_no' | translate"></label>
                <input ng-model="warehouseInfo.wo_no"></input>
                <div class="tip search" ng-click="loadWoNo();"><img src="image/icons/search.png"></img> </div>
                <div class="space-field"></div>
            </div>
            <div class="kmi-list column-selector" column-selector-id="plot_info_detail">
                <div class="kmi-list__header">
                    <div class="kmi-list__column" style="flex:0 0 36px;"></div>
                    <div class="kmi-list__column head-controls" style="flex:1;">
                        <div class="filter" ng-show="filterSH.item_no">
                            <input ng-model="list_filter.item_no">
                            <i class="material-icons clear" style="position: absolute;top: 2px;right: 4px;"
                                ng-click="filterSH.item_no = false;list_filter.item_no = '';">clear</i>
                        </div>
                        <div class="order" ng-hide="filterSH.item_no">
                            <i class="material-icons search" style="z-index:1;" ng-click="filterSH.item_no = true">search</i>
                            <label ng-bind="'B0401.list.column01'| translate"></label>
                        </div>
                    </div>
					<div class="kmi-list__column head-controls" style="flex:1;">
                        <div class="filter" ng-show="filterSH.item_name">
                            <input ng-model="list_filter.item_name">
                            <i class="material-icons clear" style="position: absolute;top: 2px;right: 4px;"
                                ng-click="filterSH.item_name = false;list_filter.item_name = '';">clear</i>
                        </div>
                        <div class="order" ng-hide="filterSH.item_name">
                            <i class="material-icons search" style="z-index:1;" ng-click="filterSH.item_name = true">search</i>
                            <label ng-bind="'B0401.list.column02'| translate"></label>
                        </div>
                    </div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column12' | translate"></div>
                    <div class="kmi-list__column hide" style="flex:1;" ng-bind="'B0401.list.column09' | translate"></div>
                    <div class="kmi-list__column"      style="flex:1;" ng-bind="'B0401.list.column10' | translate"></div>
                    <div class="kmi-list__column hide" style="flex:1;" ng-bind="'B0401.list.column11' | translate"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column03' | translate"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column04' | translate"></div>
                    <div class="kmi-list__column" style="flex:0 0 60px;" ng-bind="'B0401.list.column05' | translate"></div>
                    <div class="kmi-list__column require" ng-show="isB0225" style="flex:0 0 84px;"></div>
                </div>
                <div class="kmi-list__row-content">
                    <div class="kmi-list__row"
                         ng-repeat="item in warehouseInfo['plot_info_detail'] |filter:list_filter track by $index">
                        <div class="kmi-list__column" style="flex:0 0 36px;">
                            <button class="mdl-button mdl-js-button mdl-button--icon mdl-button--icon_prime" ng-click="itemCheck($index,item);">
                                <img src="image/icons/add.png"></img>
                            </button>
                        </div>
                        <div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.item_no"></div>
						<div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.item_name"></div>
						<div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.item_spec"></div>
                        <div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.item_ver"></div>
                        <div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.item_unit_no"></div>
                        <div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.item_sys_unit_no"></div>
                        <div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.wo_no"></div>
                        <div class="kmi-list__column  column-border" style="flex:1;" ng-bind="item.plot_no"></div>
                        <div class="kmi-list__column" style="flex:0 0 60px;" ng-bind="item.qty"></div>
                        <div class="kmi-list__column kmi-column-button" style="flex:0 0 84px;" ng-show="isB0225">
                            <label ng-bind="'B0225.title' | translate"></label>
                            <div class="kmi-can-click" ng-click="callB0225(item);"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="kmi-text-fields" style="margin: 8px 0;">
                <label class="label" ng-bind="'B0401.plot_no' | translate"></label>
                <input ng-model="warehouseInfo.plot_no" style="height: inherit;flex:1;"
                       ng-disabled="warehouseInfo.plot_info_detail.length==0"
                ></input>
                <div class="kmi-button kmi-button-confrim btn-confirm"
                     style="width:100px" ng-disabled="warehouseInfo.plot_info_detail.length==0">
                    <label ng-bind="'B0401.choose' | translate"></label>
                    <div class="kmi-can-click" ng-hide="warehouseInfo.plot_info_detail.length==0" ng-click="pickTarget()"></div>
                </div>
            </div>
            <div class="kmi-list column-selector" column-selector-id="selectedList">
                <div class="kmi-list__header">
                    <div class="kmi-list__column" style="flex:0 0 32px;padding:0px;"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column01' | translate"></div>
					<div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column02' | translate"></div>
					<div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column12' | translate"></div>
                    <div class="kmi-list__column hide" style="flex:1;" ng-bind="'B0401.list.column09' | translate"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column10' | translate"></div>
                    <div class="kmi-list__column hide" style="flex:1;" ng-bind="'B0401.list.column11' | translate"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column03' | translate"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'B0401.list.column04' | translate"></div>
                    <div class="kmi-list__column" style="flex:0 0 60px;" ng-bind="'B0401.list.column05' | translate"></div>
                </div>
                <div class="kmi-list__row-content">
                    <div class="kmi-list__row"
                         ng-repeat="item in selectedList track by $index">
                        <div class="kmi-list__column" style="flex:0 0 32px;padding:0px;">
                            <button class="mdl-button mdl-js-button mdl-button--icon" ng-click="returnTarget($index,item)">
                                <img  src="image/icons/delete1.png"></img>
                            </button>
                        </div>
                        <div class="kmi-list__column column-border column-input" style="flex:1;">
                            <label ng-if="item.product_change != '2'" ng-bind="item.item_no"></label>
                            <input ng-if="item.product_change == '2'" type="text" ng-value="item.item_no" readonly="readonly"
                                ng-click="product_change($event, item);" ng-value="item.cancel_qty">
                        </div>
						<div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.item_name"></div>
						<div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.item_spec"></div>
                        <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.item_ver"></div>
                        <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.item_unit_no"></div>
                        <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.item_sys_unit_no"></div>
                        <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.wo_no"></div>
                        <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.plot_no"></div>
                        <div class="kmi-list__column column-border" style="flex:0 0 60px;" ng-bind="item.qty"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="kmi-layout-footer">
            <button class="mdl-button mdl-js-button mdl-button--fab mdl-shadow--custom mdl-button--custom1"
                    ng-click="confirm();" ng-disabled="selectedList.length==0">
                <i class="material-icons">done</i>
            </button>
        </div>
    </div>
</div>
